home *** CD-ROM | disk | FTP | other *** search
/ 3D World 76 / 3DWI76.iso / mac / Resources / Polygon cruncher / PolygonCruncher.exe / delegates.xml < prev    next >
Extensible Markup Language  |  2005-07-09  |  7KB  |  109 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Delegate command file.
  4.  
  5.   Commands which specify
  6.  
  7.     decode="in_format" encode="out_format"
  8.  
  9.   specify the rules for converting from in_format to out_format These
  10.   rules may be used to translate directly between formats.
  11.  
  12.   Commands which specify only
  13.  
  14.     decode="in_format"
  15.  
  16.   specify the rules for converting from in_format to some format that
  17.   ImageMagick will automatically recognize. These rules are used to
  18.   decode formats.
  19.  
  20.   Commands which specify only
  21.  
  22.    encode="out_format"
  23.  
  24.   specify the rules for an "encoder" which may accept any input format.
  25.  
  26.   For delegates other than gs-color, gs-cmyk, gs-mono, pcl-color, pcl-cmyk,
  27.   pcl-mono, and mpeg-encode the substitution rules are as follows:
  28.  
  29.     %i  input image filename
  30.     %o  output image filename
  31.     %u  unique temporary filename
  32.     %z  secondary unique temporary filename
  33.  
  34.     %#  input image signature
  35.     %b  image file size
  36.     %c  input image comment
  37.     %g  window group
  38.     %h  image rows (height)
  39.     %k  input image number colors
  40.     %m  input image format
  41.     %p  page number
  42.     %q  input image depth
  43.     %s  scene number
  44.     %w  image columns (width)
  45.     %x  input image x resolution
  46.     %y  input image y resolution
  47.  
  48. -->
  49. <delegatemap>
  50.   <delegate decode="autotrace" stealth="True" command='"autotrace" -output-format svg -output-file "%o" "%i"' />
  51.   <delegate decode="browse" stealth="True" spawn="True" command='"htmlview" http://www.imagemagick.org/'  />
  52.   <delegate decode="cgm" command='"ralcgm" -d ps -oC < "%i" > "%o" 2>/dev/null' />
  53.   <delegate decode="crw" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  54.   <delegate decode="dcr" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  55.   <delegate decode="mrw" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  56.   <delegate decode="nef" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  57.   <delegate decode="orf" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  58.   <delegate decode="raf" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  59.   <delegate decode="x3f" command='"/usr/bin/dcraw" -3 -w -c "%i" > "%o"' />
  60.   <delegate decode="dvi" command='"dvips" -q -o "%o" "%i"' />
  61.   <delegate decode="edit" stealth="True" command='"xterm" -title "Edit Image Comment" -e vi "%o"' />
  62.   <delegate decode="emf" command='"wmf2eps" -o "%o" "%i"' />
  63.   <delegate decode="eps" encode="pdf" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pdfwrite" -sOutputFile="%o" -f"%i"' />
  64.   <delegate decode="eps" encode="ps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pswrite" -sOutputFile="%o" -f"%i"' />
  65.   <delegate decode="fig" command='"fig2dev" -L ps "%i" "%o"' />
  66.   <delegate decode="gplt" command='"echo" "set size 1.25,0.62
  67.     set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u"' />
  68.   <delegate decode="gs-color" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  69.   <delegate decode="gs-cmyk" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  70.   <delegate decode="gs-mono" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  71.   <delegate decode="hpg" command='"hp2xx" -q -m eps -f `basename "%o"` "%i"
  72.     mv -f `basename "%o"` "%o"' />
  73.   <delegate decode="hpgl" command='if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then
  74.     hp2xx -q -m eps -f `basename "%o"` "%i"
  75.     mv -f `basename "%o"` "%o
  76.   else
  77.     echo "You need to install hp2xx to use HPGL files with ImageMagick."
  78.     exit 1
  79.   fi' />
  80.   <delegate decode="htm" command='"html2ps" -U -o "%o" "%i"' />
  81.   <delegate decode="html" command='"html2ps" -U -o "%o" "%i"' />
  82.   <delegate decode="https" command='"@WWWDecodeDelegateDefault@" -q -O "%o" "https:%i"' />
  83.   <delegate decode="ilbm" command='"ilbmtoppm" "%i" > "%o"' />
  84.   <delegate decode="man" command='"groff" -man -Tps "%i" > "%o"' />
  85.   <delegate decode="mpeg-decode" stealth="True" command='"mpeg2decode.exe" -q -b "%i" -f -r -o3 "%u%%d"' />
  86.   <delegate encode="mpeg-encode" stealth="True" command='"mpeg2encode.exe" "%i" "%o"' />
  87.   <delegate decode="pcl-color" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  88.   <delegate decode="pcl-cmyk" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=@PCLCMYKDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  89.   <delegate decode="pcl-mono" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  90.   <delegate decode="pdf" encode="eps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="epswrite" -sOutputFile="%o" -f"%i"' />
  91.   <delegate decode="pdf" encode="ps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pswrite" -sOutputFile="%o" -f"%i"' />
  92.   <delegate decode="pnm" encode="ilbm" mode="encode" command='"ppmtoilbm" -24if "%i" > "%o"' />
  93.   <delegate decode="pnm" encode="launch" mode="encode" command='"gimp" "%i"' />
  94.   <delegate decode="miff" encode="win" mode="encode" command='"/usr/local/bin/display" -immutable "%i"' />
  95.   <delegate decode="pov" command='"povray" "+i"%i"" +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n"
  96.     "convert" -concatenate "%o*.png" "%o"' />
  97.   <delegate decode="ps" encode="eps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="epswrite" -sOutputFile="%o" -f"%i"' />
  98.   <delegate decode="ps" encode="pdf" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pdfwrite" -sOutputFile="%o" -f"%i"' />
  99.   <delegate decode="ps" encode="print" mode="encode" command='lpr "%i"' />
  100.   <delegate decode="rad" command='"ra_ppm" -g 1.0 "%i" "%o"' />
  101.   <delegate decode="rgba" encode="rle" mode="encode" command='"modify" -flip -size %wx%h "rgba:%i"
  102.     "rawtorle" -w %w -h %h -n 4 -o "%o" "%i"' />
  103.   <delegate decode="scan" command='"scanimage" -d "%i" > "%o"' />
  104.   <delegate decode="shtml" command='"html2ps" -U -o "%o" "%i"' />
  105.   <delegate decode="txt" encode="ps" mode="bi" command='"enscript" -o "%o" "%i"' />
  106.   <delegate decode="wmf" command='"wmf2eps" -o "%o" "%i"' />
  107.   <delegate encode="show" stealth="True" spawn="True" command='"/usr/local/bin/display" -immutable -delay 0 -window_group %g -title "%l of %f" "tmp:%i"' />
  108. </delegatemap>
  109.